#include"threadPool.h"
#include<memory>
using namespace std;

int main()
{
    unique_ptr<threadPool<int>> p(new threadPool<int>());

    int i =0 ;
    while(1)
    {
        //生产任务
        p->start();
        p->pushTask(++i);
        sleep(2);
    }
    return 0;
}